#include "StdAfx.h"
#include "PropertyBoxForm.h"


using namespace particleEditorCli;

PropertyBoxForm::PropertyBoxForm(void)
{
	InitializeComponent();
	mInstance = this;
}

PropertyBoxForm::~PropertyBoxForm()
{
	if (components)
	{
		delete components;
	}
}

PropertyBoxForm^ PropertyBoxForm::Instance::get()
{
	return mInstance;
}

void PropertyBoxForm::setObject(Object^ obj)
{
	mPropertyGrid->SelectedObject = obj;
}

void PropertyBoxForm::InitializeComponent(void)
{
	this->mPropertyGrid = (gcnew System::Windows::Forms::PropertyGrid());
	this->SuspendLayout();
	// 
	// mPropertyGrid
	// 
	this->mPropertyGrid->Dock = System::Windows::Forms::DockStyle::Fill;
	this->mPropertyGrid->Location = System::Drawing::Point(0, 0);
	this->mPropertyGrid->Name = L"mPropertyGrid";
	this->mPropertyGrid->Size = System::Drawing::Size(284, 262);
	this->mPropertyGrid->TabIndex = 0;
	// 
	// PropertyBoxForm
	// 
	this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
	this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
	this->ClientSize = System::Drawing::Size(284, 262);
	this->Controls->Add(this->mPropertyGrid);
	this->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Regular, System::Drawing::GraphicsUnit::Point, 
		static_cast<System::Byte>(0)));
	this->HideOnClose = true;
	this->Name = L"PropertyBoxForm";
	this->Text = L"PropertyBoxForm";
	this->ResumeLayout(false);

}



